package edu.lingnan.librarymanage.core.constant;

/**
 * @author cql
 */
public class LibraryManageConstant {

    /**
     * 验证码有效期（分钟）
     */
    public static final Integer CAPTCHA_EXPIRATION = 5;

    /**
     * 验证码-键
     */
    public static final String CODE = "code";

    /**
     * 验证码过期时间-键
     */
    public static final String EXPIRES = "expires";

    /**
     * 登录用户
     */
    public static final String LOGIN_USER = "login";

    /**
     * 1分钟等于6000毫秒
     */
    public static final int MINUTE = 6000;

    /**
     * 一级分类
     */
    public static final String CATEGORY_SESSION = "category";


    /**
     * 借阅周期30天
     */
    public static final long BORROW_DAY = 31;

    /**
     * 用户最大在借的借阅数
     */
    public static final Integer MAX_BORROW_BOOK = 2;


    /**
     * 借阅
     */
    public static Integer IS_BORROW = 1;

    /**
     * 未借阅
     */
    public static Integer IS_NOT_BORROW = 0;
}
